<!--CONTENT-LEFT-->
<div class="col-md-8 ">
	<div class="mainpic">
		<img src="<?php if(!empty($result['big_thumb'])){ echo $result['big_thumb'];}else{ echo base_url('assets/home/images/cover.jpg');}?>" alt="Picture Film" class="img-responsive pictitle">
		<div class="bg_subpic">
			<img src="<?php echo $result['thumb']; ?>" alt="Picture Film" class="img-responsive subpic">	
		</div>
	</div>
	
	<div id="info-content" class="epcontent">
		<div id="info-film" class="header_content">
			<strong><?php echo $result['name']; ?></strong>
			<span class="ep_film">Ep <?php echo $total_ep; ?></span>
			<span class="viewed_fim"><i class="fa fa-eye"></i> <?php echo $result['viewed']; ?> </span>
		</div>
		<div class="clr"></div>
		<div class="des">
			<div class="info_play">
				<a href="<?php if(!empty($result_ep[0]['epname'])){ echo base_url('watch').'/'.$result['rewrite'].'-ep-'.$result_ep[0]['epname'].'-'.$result_ep[0]['epid'].'.html';}else{echo 'javascript:void(0)';}?>" title="watch episode 1 of <?php echo $result['name']?>">Watch Anime</a>
			</div>
			<div class="info_film">
				<dl class="dl-horizontal col1 fr">
					<dt>Alternative Title(s):</dt><dd class="status"><h2><?php echo $result['name']; ?></h2></dd>
					<dt>Genres:</dt><dd>
					<?php if(!empty($result['category'])){
						$arr_cate = explode(',',$result['category']);
						$cate_arr = array();
						foreach($arr_cate as $val){
	                        $cate_arr[] = '<a href="'.base_url('category').'/'.$category_rewrite[$val].'.html'.'" title="'.$category_name[$val].'">'.$category_name[$val].'</a>';
	                    }
	                    echo $cate_name = implode(' , ',$cate_arr);
					?>
					<?php } ?>
					</dd>
					<dt>Vintage:</dt><dd><?php echo $result['film_year']; ?></dd>
					<dt>Status:</dt><dd>Ongoing</dd>
				</dl>
			</div>		
		</div>	
	</div>

	<div class="panel panel-default">
	    <div class="panel-heading">Content: <h3><?php echo $result['name']; ?></h3></div>
	    <div class="panel-body">
	    	<span><?php echo UnHtmlChars($result['content']); ?>
		    </span>
			<p>Tags:
				<h3>
					<?php 
						if(!empty($result_tag)){
							$str_arr_tag = array();
							foreach($result_tag as $value){
								$str_arr_tag[] = '<a href="'.base_url('tags').'/'.$value['tag_rewrite'].'.html'.'" title="'.$value['tag'].'">'.$value['tag'].'</a>'; 
							}
							$str_name = implode(' , ', $str_arr_tag);
							echo $str_name;	
						}
					?>
				</h3>
			</p>
	    </div>
	</div>

	<div class="panel panel-default">
		<div class="panel-heading list_ep">List Episode <?php echo $result['name']; ?> </div>
		<div class="panel-body">
			<ul id="list-episode" class="list-unstyled text-center">
				<?php if(!empty($result_ep)){ foreach($result_ep as $value): ?>
					<li><a href="<?php echo base_url('watch').'/'.$result['rewrite'].'-ep-'.$value['epname'].'-'.$value['epid'].'.html';?>" title=""><?php echo $result['name'];?> <?php echo $value['epname'] ;?></a></li>
				<?php endforeach; } ?>
			</ul>
		</div>
	</div>
</div>
<!--END CONTETN-LEFT-->